#ifndef _QUEUE_H_
#define _QUEUE_H_


#include <stdlib.h>
#include "list.h"

typedef list_t queue_t;

#define queue_init		list_init
#define queue_destroy	list_destroy

int queue_enqueue(queue_t *queue, const void *data);
int queue_dequeue(queue_t *queue, void **data);
#define queue_peek(queue)		((queue)->head ? (queue)->head->data : NULL)
#define queue_size				list_size

#endif /*_QUEUE_H_*/

